@import "../common/abstracts/variable.scss";
@import "../common/abstracts/_mixin.scss";

.wot-theme-dark {
  @include bdeep(message-box) {
    @include e(body) {
      background-color: $-dark-background2;
    }

    @include e(title) {
      color: $-dark-color;
    }

    @include e(content) {
      color: $-dark-color3;

      &::-webkit-scrollbar-thumb {
        background: $-dark-border-color;
      }
    }
  }
}

:deep(.wd-message-box){
  border-radius: $-message-box-radius;
  overflow: hidden;
}

@include bdeep(message-box) {
  border-radius: $-message-box-radius;
  overflow: hidden;

  @include e(container) {
    width: $-message-box-width;
    box-sizing: border-box;
  }

  @include e(body) {
    background-color: $-message-box-bg;
    padding: $-message-box-padding;

    @include when(no-title) {
      padding: 25px 24px 0px;
    }
  }

  @include e(title) {
    text-align: center;
    font-size: $-message-box-title-fs;
    color: $-message-box-title-color;
    line-height: 20px;
    font-weight: 500;
    padding-top: 5px;
    padding-bottom: 10px;
  }

  @include e(content) {
    max-height: $-message-box-content-max-height;
    color: $-message-box-content-color;
    font-size: $-message-box-content-fs;
    text-align: center;
    overflow: auto;
    line-height: 20px;

    &::-webkit-scrollbar {
      width: $-message-box-content-scrollbar-width;
    }

    &::-webkit-scrollbar-thumb {
      width: $-message-box-content-scrollbar-width;
      background: $-message-box-content-scrollbar-color;
      border-radius: calc($-message-box-content-scrollbar-width / 2);
    }
  }

  @include e(input-error) {
    min-height: 18px;
    margin-top: 2px;
    color: $-message-box-input-error-color;
    text-align: left;

    @include when(hidden) {
      visibility: hidden;
    }
  }

  @include e(actions) {
    padding: 24px;
  }

  @include e(flex) {
    display: flex;
  }

  @include e(block) {
    display: block;
  }

  @include e(cancel) {
    margin-right: 16px;
  }
}

.zoomIn-enter-active,
.zoomIn-leave-active {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition: all .2s;
}

.zoomIn-enter {
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.7);
  transition: all .2s ease-out;
}

.zoomIn-leave-to {
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.9);
  transition: all .2s ease-out;
}